package com.ktjy.crm.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ktjy.crm.entity.SysUser;

import java.util.List;

public interface SysUserService {
    //登录
    SysUser login(String account, String password);

    //分页
    Page selectPage(Integer current, Integer size);

    //根据ID查询
    SysUser selectById(Integer id);

    //根据ID删除
    int deleteById(Integer id);

    //修改
    int updateById(SysUser sysUser);

    //添加用户信息
    int insert(SysUser sysUser);

    //搜索
    Page<SysUser> selectPageByName(String realName, Integer current, Integer size);
}
